package day13;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

/**
 * @author Xiao
 * @date 2021/8/6
 */
public class PropertiesDemo {

    public static void main(String[] args) throws IOException {
        Properties p = new Properties();
        FileReader fr = new FileReader("classpractice\\src\\day13\\prop.properties");
        p.load(fr);
        fr.close();
        System.out.println(p);
        FileWriter fw = new FileWriter("classpractice\\src\\day13\\propCopy.properties");
        p.store(fw, "阿良的注释");
        fw.close();
    }
}
